package com.crm.model.qo.datasearch;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: 数据检索
 * @Author lixq-f
 * @Date 2021/5/13
 * @Version V1.0
 **/
@Data
public class DataSearchQO implements Serializable {

    /**
     * 当前页
     */
    private Integer pageIndex = 1;
    /**
     * 每页展示的条数
     */
    private Integer pageSize = 10;

    @NotNull(message = "搜索类型不可以为空")
    private Integer searchType;

    @Length(max=150, message="搜索名称长度最多为150个字符")
    @NotNull(message = "搜索名称不可以为空")
    private String searchName;

}
